public class Test {

    String name = "tqz";

    public static void main(String[] args) {
//        int[] array = {44,45,46,9,10,11,12,13,14};
//        System.out.println(find(array));

//        Test test = new Test();
//        System.out.println(test.name);
//        change(test);
//        System.out.println(test.name);

        Integer a = 3;
        cc(a);
        System.out.println(a);
    }

    public static void cc(int a){
        a += 1;
//        System.out.println(a);
    }

    public static void change(Test test){
        test.name = "csy";
    }

    public static int find(int[] array) {
        if (array.length == 0)
            return 0;
        int start = 0;
        int end = array.length - 1;
        boolean flag = false;
        while (array[start] > array[end]) {
            flag = true;
            int mid = (start + end) / 2;
            // 进入后面有序的部分
            if (array[mid] < array[end]) {
                if (array[mid] < array[mid + 1] && array[mid-1] > array[mid]) {
                    return array[mid];
                } else {
                    if (flag) {
                        while (flag) {
                            
                        }
                    }
                }
            } else if (array[mid] > array[end]) {
                // 进入前面有序的部分
                start = mid;
            } else {
                end = mid;
            }
        }
        return 0;
    }


}
